package com.feiwo.nonego.rpc.protocol.base;

import java.io.Serial;
import java.io.Serializable;

/**
 * RPC 消息基类
 *
 * @author feiwo 2025-08-05
 */
public class RpcMessage implements Serializable {

    @Serial
    private static final long serialVersionUID = -6251897844332359511L;

    /**
     * 是否单向调用
     */
    private boolean oneway;

    /**
     * 是否异步调用
     */
    private boolean async;

    public boolean isOneway() {
        return oneway;
    }

    public void setOneway(boolean oneway) {
        this.oneway = oneway;
    }

    public boolean isAsync() {
        return async;
    }

    public void setAsync(boolean async) {
        this.async = async;
    }
}
